<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:f="http://java.sun.com/jsf/core" 
  xmlns:p="http://primefaces.org/ui" 
  xmlns:h="http://java.sun.com/jsf/html" 
  xmlns:pr="http://java.sun.com/jsf/composite/totororo"
  template="template_front.xhtml">
  <ui:define name="content">  

 	<h1> Formulaire de contact </h1>

<div class="contact" > 	
<h:form id="contact">
 		<p:panelGrid id="contact"  columns="1">  
 		   		     	
	     	<h:outputLabel for="nom" value="Nom" />
	     	<p:inputText id="nom" value="#{emailController.client.nom}" required="true" />
			<p:message id="nom1" for="nom" />
	     	
	     	<h:outputLabel for="prenom" value="Prenom" />
	     	<p:inputText id="prenom" value="#{emailController.client.prenom}" required="true" />
	    	<p:message id="prenom1" for="prenom" />	     	
	     	
	     	<h:outputLabel for="email" value="email" />
	     	<p:inputText id="email" value="#{emailController.client.email}" required="true" />
	     	<p:message id="email1" for="email" />
	     	
	     	<h:outputLabel for="adresse" value="adresse" />
	     	<p:inputText id="adresse" value="#{emailController.client.adresse}" required="true" />
			<p:message id="adresse1" for="adresse" />
	     	
	     	<h:outputLabel for="telephone" value="Téléphone" />
	     	<p:inputText id="telephone" value="#{emailController.client.telephone}" required="true" />
			<p:message id="telephone1" for="telephone" />
			
			<h:outputLabel for="zone" value="Zone de texte" />
			<p:inputTextarea  id="zone" value="#{emailController.contenu}" required="true" rows="6" cols="33" /> 
    		<p:message id="zone1" for="zone" />
		    <p:commandButton id="submitButton" action="#{emailController.contact}" value="Envoyer le formulaire" update="contact"/>
    </p:panelGrid>

</h:form>  
</div>	  
  </ui:define>
</ui:composition>
